package sringTest;

import com.demo.bean.User;
import org.junit.Test;
import org.junit.platform.commons.logging.Logger;
import org.junit.platform.commons.logging.LoggerFactory;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class springTestDemo {
    @Test
    public void test1() {

        ApplicationContext context=
                new ClassPathXmlApplicationContext("spring6.xml");
        User userDemo11 = context.getBean("userDemo1", User.class);
        System.out.println(userDemo11);
    }
    @Test
    public void test3() {
        Logger logger = LoggerFactory.getLogger(springTestDemo.class);
        logger.debug(() -> "日志信息");
    }
}
